{extend name='admin@public/content'}

{block name="button"}

<!--{if auth("$classuri/add")}-->
<button data-open='{:url("$classuri/add")}' data-title="添加商品" class='layui-btn layui-btn-sm layui-btn-primary'>添加git</button>
<!--{/if}-->

{/block}
{block name="content"}

<!-- 表单搜索 开始 -->
<form autocomplete="off" class="layui-form layui-form-pane form-search" action="{:request()->url()}" onsubmit="return false" method="get">

</form>

<script>
    window.laydate.render({range: true, elem: '#range-date'});
    window.form.render();
</script>
<!-- 表单搜索 结束 -->
<form autocomplete="off" onsubmit="return false;" data-auto="true" method="post">
    {if empty($list)}
    <p class="help-block text-center well">没 有 记 录 哦！</p>
    {else}
    <input type="hidden" value="resort" name="action"/>
    <table class="layui-table" lay-skin="line" lay-size="sm">
        <thead>
        <tr>
            <th class='text-left nowrap'>ID</th>
            <th class='text-left nowrap'>URL</th>
            <th class='text-left nowrap'>git名称</th>
            <th class='text-left nowrap'>标签</th>
            <th class='text-left nowrap'>星</th>
            <th class='text-left nowrap'>简介</th>
            <th class='text-left nowrap'>热度</th>
            <th class='text-left nowrap'>状态</th>
            <th class='text-left nowrap'>创建时间</th>
            <th class='text-left nowrap'></th>
        </tr>
        </thead>
        <tbody>
        {foreach $list as $key=>$vo}
        <tr>
            <td class='text-left text-top nowrap'>{$vo.id}</td>
            <td class='text-left text-top nowrap'>{$vo.url}</td>
            <td class='text-left text-top nowrap'>{$vo.gitname}</td>
            <td class='text-left text-top nowrap'>{$vo.introduction}</td>
            <td class='text-left text-top nowrap'>{$vo.label}</td>
            <td class='text-left text-top nowrap'>{$vo.star}</td>
            <td class='text-left text-top nowrap'>{$vo.introduction}</td>
            <td class='text-left text-top nowrap'>{$vo.is_hot}</td>
            <td class='text-left text-top nowrap'>{$vo.status}</td>
            <td class='text-left text-top nowrap'>{$vo.created_time|date="Y-m-d H:i:s"}</td>
            <td class='text-left text-top nowrap'>
                <span class="text-explode">|</span>
            </td>
        </tr>
        {/foreach}
        </tbody>
    </table>
    {if isset($page)}<p>{$page|raw}</p>{/if}
    {/if}
</form>

<script>


</script>
{/block}